- f.fields_for :bundle_variations do |ff|
  %p
    = ff.label :frequency
    %br
    = ff.check_box :frequency
    / , {}, v, ""
  %p
    = ff.label :price
    %br
    = ff.text_field :price
  %p


/ / - i, k = 0, 0
/ - s = Array.new
/ - object.bundle_variations.each do |g| 
/   - g.build_trial_period if g.trial_period.nil?
/   - s << g.frequency
/ - freq = BundleVariation.frequency
/ - freq.delete_if {|x| s.include?(x) }
/ = freq.to_s
/ - if object.bundle_variations.count  0
/   - f.fields_for :bundle_variations do |ff| #:bundle_variations
/     / - k += 1
/     / - puts k.to_s + "k"
/     / - if v != temp
/     /   - temp = v
/   
/     %p
/       = ff.label :frequency
/       %br
/       = ff.check_box :frequency
/       / , {}, v, ""
/     %p
/       = ff.label :price
/       %br
/       = ff.text_field :price
/     %p
/     / - f.bundle_variations.build_trial_period #unless f.trial_period
/     / = render :partial => 'trial_periods/form', :locals => {:ff => ff}
/ - if object.bundle_variations.count < BundleVariation.frequency.length
/   - @bundles.bundle_variations.build
/      
/ - freq.each do |v|
/   / - i += 1
/   / - puts i.to_s + "i"
/   / - f.build_trial_period unless f.trial_period
/   / - bundle_variations.each { |g| g.build_trial_period }
/   - temp = 0
/   = object.bundle_variations.count
/   - f.fields_for :bundle_variations do |ff| #:bundle_variations
/     / - k += 1
/     / - puts k.to_s + "k"
/     / - if v != temp
/     /   - temp = v
/     %p
/       = ff.label v
/       %br
/       = ff.check_box :frequency, {}, v, ""
/     %p
/       = ff.label :price
/       %br
/       = ff.text_field :price
/     %p
/     / - f.bundle_variations.build_trial_period #unless f.trial_period
/     / = render :partial => 'trial_periods/form', :locals => {:ff => ff}
/ 
